package com.ky.pro.big.data.spark.distcp;

public class DistCpConfig {

    String sourcePath;

    String distPath;

    boolean ignoreFailure = false;

    Integer maxConc;

    public DistCpConfig() {
    }

    public String getSourcePath() {
        return sourcePath;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public String getDistPath() {
        return distPath;
    }

    public void setDistPath(String distPath) {
        this.distPath = distPath;
    }

    public boolean isIgnoreFailure() {
        return ignoreFailure;
    }

    public void setIgnoreFailure(boolean ignoreFailure) {
        this.ignoreFailure = ignoreFailure;
    }

    public Integer getMaxConc() {
        return maxConc;
    }

    public void setMaxConc(Integer maxConc) {
        this.maxConc = maxConc;
    }

    public void dump() {
        System.out.println("======================================");
        System.out.println("Parsed Args:");
        System.out.println("source path:\t" + sourcePath);
        System.out.println("dist path:\t" + distPath);
        System.out.println("ignore failure:\t" + ignoreFailure);
        if (maxConc != null) {
            System.out.println("max concurrency:\t" + maxConc);
        }
        System.out.println("======================================");
    }
}
